import http from '@/utils/request.js'

/**
 * 
 * */
export default {
	//首页-模拟考试-标题
	main: function(params) {
		return http.get('/baseSetting/main-first-title', params)
	},
	// 首页-模拟考试-单元测试封面：main-first-pic1
	mainPic1: function(params) {
		return http.get('/baseSetting/main-first-pic1', params)
	},
	// 首页-模拟考试-阶段测试封面：main-first-pic2
	mainPic2: function(params) {
		return http.get('/baseSetting/main-first-pic2', params)
	},
	// 首页-模拟考试-综合模拟封面：main-first-pic3
	mainPic3: function(params) {
		return http.get('/baseSetting/main-first-pic3', params)
	},
	// 首页-专项测试-标题：main-second-title
	mainSecond: function(params) {
		return http.get('/baseSetting/main-second-title', params)
	},
	// 首页-专项测试-听力封面：main-second-pic1
	mainSecondPic1: function(params) {
		return http.get('/baseSetting/main-second-pic1', params)
	},
	// 首页-专项测试-口语封面：main-second-pic2
	mainSecondPic2: function(params) {
		return http.get('/baseSetting/main-second-pic2', params)
	},
	// 首页-风景
	advertisement2: function(params) {
		return http.get('/baseSetting/main-advertisement2', params)
	},
	// 首页-风景
	advertisement1: function(params) {
		return http.get('/baseSetting/main-advertisement1', params)
	},
	// 用户信息
	userInfo: function(params) {
		return http.get('/userInfo/'+ params)
	},
	// 修改手机号
	updateMobile: function(params) {
		return http.post('/updateMobile', params)
	},
	// 修改用户信息
	updateUser: function(token,params) {
		return http.post('/updateUser/'+token, params)
	},
	// 我的-客服二维码：customer-service-pic
	customerPic: function(params) {
		return http.get('/baseSetting/customer-service-pic', params)
	},
	// 使用卡密
	useCard: function(token,params) {
		return http.post('/useCard/'+token, params)
	},
	// 模拟考试分类
	paperCatNormal: function(params) {
		return http.get('/paperCat/normal', params)
	},
	// 专项分类
	special: function(params) {
		return http.get('/paperCat/special', params)
	},
	// 获取试卷或专项的分页
	paper: function(data,params) {
		return http.get('/paper/'+data, params)
	},
	paperToken: function(token,data,params) {
		return http.get('/paper/'+token +'/'+data, params)
	},
	// 大题内容
	paperUnit: function(params) {
		return http.get('/paperUnit/'+ params)
	},
	// 获取年级
	getGrade: function(params) {
		return http.get('/getGrade', params)
	},
	//获取播放音频
	getUrl: function(params) {
		return http.get('/Index/getUrl', params)
	},
	//获取记录
	scoreLog: function(data,params) {
		return http.get('/scoreLog/'+data, params)
	},
	
	//保存分数
	saveScore: function(data,params) {
		return http.post('/saveScore/'+data, params)
	},
	//vip
	vipInfo: function(params) {
		return http.get('/vipInfo', params)
	},
	vipPay: function(data,params) {
		return http.post('/vipPay/'+data, params)
	}
}
